<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Home\Controller;
use Think\Controller;
class MoodreplyController extends Controller{
    //新增回复
    public function addReply(){
        $data['uid']=I('post.uid')?I('post.uid'):'';
        $data['mid']=I('post.mid')?I('post.mid'):'';
        $data['content']=I('post.content')?I('post.content'):'';
        foreach($data as $v){
            if(empty($v)){
                $this->ajaxReturn(false);
            }
        }
        $replyModel=D('moodreply');
        $replyInfo=$replyModel->addMoodReply($data);
        if($replyInfo){
            print_r($replyInfo);
        }else{
            $this->ajaxReturn(false);
        }
    }
}